package model;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.*;

public class Member {
	
	
//	member fields
	
	private String mid = null;
	private String mname = null;
	private String mpass = null;
	private int lvno = 1;
	private String mbirth = null;
	private String memail = null;
	private String maddresso = null;
	private String maddressh = null;
	private String mphoneo = null;
	private String mphoneh = null;
	private String mintro = null;
	private String mphotoofn = null;
	private String mphotosfn = null;
	private String mregdate = null;
	
	private String mobirth;
	private String moemail;
	private String moaddresso;
	private String moaddressh;
	private String mophoneo;
	private String mophoneh;
	private String mointro;
	private String mophoto;
	private String momailing;
	
	private Vector<MemberCommunity> memberCommunity = null; 
	
//	getter & setter methods

	public int getLvno() {
		return lvno;
	}

	public void setLvno(int lvno) {
		if(lvno==0) this.lvno=1;
		else this.lvno = lvno;
	}

	public String getMaddressh() {
		return maddressh;
	}

	public void setMaddressh(String maddressh) {
		this.maddressh = maddressh;
	}

	public String getMaddresso() {
		return maddresso;
	}

	public void setMaddresso(String maddresso) {
		this.maddresso = maddresso;
	}

	public String getMemail() {
		return memail;
	}

	public void setMemail(String memail) {
		if(memail.equals("")) this.memail = null;
		else this.memail = memail;
	}

	public String getMid() {
		return mid;
	}

	public void setMid(String mid) {
		if(mid.equals("")) this.mid = null;
		else this.mid = mid;
	}

	public String getMintro() {
		return mintro;
	}

	public void setMintro(String mintro) {
		this.mintro = mintro;
	}

	public String getMname() {
		return mname;
	}

	public void setMname(String mname) {
		if(mname.equals("")) this.mname = null;
		else this.mname = mname;
	}


	public String getMoaddressh() {
		if(moaddressh==null) moaddressh = "off";
		return moaddressh;
	}

	public void setMoaddressh(String moaddressh) {
		this.moaddressh = moaddressh;
	}

	public String getMoaddresso() {
		if(moaddresso==null) moaddresso = "off";
		return moaddresso;
	}

	public void setMoaddresso(String moaddresso) {
		this.moaddresso = moaddresso;
	}

	public String getMobirth() {
		if(mobirth==null) mobirth = "off";			
		return mobirth;
	}

	public void setMobirth(String mobirth) {
		this.mobirth = mobirth;
	}

	public String getMoemail() {
		if(moemail==null) moemail = "off";
		return moemail;
	}

	public void setMoemail(String moemail) {
		this.moemail = moemail;
	}

	public String getMointro() {
		if(mointro==null) mointro = "off";
		return mointro;
	}

	public void setMointro(String mointro) {
		this.mointro = mointro;
	}

	public String getMomailing() {
		if(momailing==null) momailing = "off";
		return momailing;
	}

	public void setMomailing(String momailing) {
		this.momailing = momailing;
	}

	public String getMophoneh() {
		if(mophoneh==null) mophoneh = "off";
		return mophoneh;
	}

	public void setMophoneh(String mophoneh) {
		this.mophoneh = mophoneh;
	}

	public String getMophoneo() {
		if(mophoneo==null) mophoneo = "off";
		return mophoneo;
	}

	public void setMophoneo(String mophoneo) {		
		this.mophoneo = mophoneo;
	}

	public String getMophoto() {
		return mophoto;
	}

	public void setMophoto(String mophoto) {
		if(mophoto==null) mophoto = "off";
		this.mophoto = mophoto;
	}

//	
	
	public String getMpass() {
		return mpass;
	}

	public void setMpass(String mpass) {
		if(mpass.equals("")) this.mpass = null;
		else this.mpass = mpass;
	}

	public String getMphoneh() {
		return mphoneh;
	}

	public void setMphoneh(String mphoneh) {
		this.mphoneh = mphoneh;
	}

	public String getMphoneo() {
		return mphoneo;
	}

	public void setMphoneo(String mphoneo) {
		this.mphoneo = mphoneo;
	}

	public String getMphotoofn() {
		return mphotoofn;
	}

	public void setMphotoofn(String mphotoofn) {
		this.mphotoofn = mphotoofn;
	}

	public String getMphotosfn() {
		return mphotosfn;
	}

	public void setMphotosfn(String mphotosfn) {
		this.mphotosfn = mphotosfn;
	}

	public String getMbirth() {
		return mbirth;
	}

	public void setMbirth(String mbirth) {
		this.mbirth = mbirth;
	}

	public Vector<MemberCommunity> getMemberCommunity() {
		return memberCommunity;
	}

	public void setMemberCommunity(Vector<MemberCommunity> memberCommunity) {
		this.memberCommunity = memberCommunity;
	}

	public String getMregdate() {
		return mregdate;
	}

	public void setMregdate(String mregdate) {
		this.mregdate = mregdate;
	}

	

	

	
	
}
